package com.dykj.fireFighting.server.socialUnit.xfyl.service.impl;

import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.dykj.fireFighting.api.socialUnit.xfyl.entity.UnitSafeDrillPlan;
import com.dykj.fireFighting.api.socialUnit.xfyl.entity.UnitSafeTrainPlan;
import com.dykj.fireFighting.api.socialUnit.xfyl.service.IUnitSafeTrainPlanService;
import com.dykj.fireFighting.common.core.service.impl.BaseServiceImpl;
import com.dykj.fireFighting.server.socialUnit.xfyl.mapper.UnitSafeTrainPlanMapper;
import lombok.extern.slf4j.Slf4j;
import org.apache.dubbo.config.annotation.DubboService;
import org.springframework.transaction.annotation.Transactional;

import java.util.List;


/**
 * 消防安全培训计划
 *
 * @Author LJJ
 * @Date 2021-06-15 16:03:51
 */
@Slf4j
@DubboService
@Transactional(rollbackFor = Exception.class)
public class UnitSafeTrainPlanServiceImpl extends BaseServiceImpl<UnitSafeTrainPlanMapper, UnitSafeTrainPlan> implements IUnitSafeTrainPlanService {

    @Override
    public List<UnitSafeTrainPlan> queryList(String enterpriseId) {
        QueryWrapper<UnitSafeTrainPlan> wrapper = new QueryWrapper<>();
        wrapper.eq("unit_id", enterpriseId);
        return this.baseMapper.selectList(wrapper);
    }
}
